#pragma once

#include <cv.h>
#include <cxcore.h>
#include <highgui.h>

class CWarp
{
protected:
	IplImage* m_pSrcImage1;
	IplImage* m_pSrcImage2;

	IplImage* m_pDestImage1;
	IplImage* m_pDestImage2;

	CString m_SrcImageWindowName1;
	CString m_SrcImageWindowName2;

	CString m_DestImageWindowName1;
	CString m_DestImageWindowName2;


public:
	CWarp(void);
	~CWarp(void);

	void Init(void);
	int LoadImage1(char* pszFileName_);
	int LoadImage2(char* pszFileName_);
	void ReleaseSrcImage1(void);
	void ReleaseSrcImage2(void);
	void ReleaseDestImage1(void);
	void ReleaseDestImage2(void);
	void Release(void);

	int MakeWarpImage(void);
};
